package cc.wanforme.fsync.entity;

import cc.wanforme.fsync.entity.po.ClientNode;
import cc.wanforme.fsync.entity.po.GroupMap;
import cn.hutool.core.bean.BeanUtil;

/**
 * 预设分组
 */
public class GroupMapVo extends GroupMap {
    // 源client
    private ClientNode sourceClientNode;
    // 源路径所在分区空间大小（应该是用不到了）
    private Long sourceTotalSpace;
    private Long sourceUsableSpace;
    private String sourceTotalSpaceStr; // 总空间
    private String sourceUsableSpaceStr; // 剩余空间

    // 备份地址
    private ClientNode targetClientNode;
    // 目标路径所在分区空间大小 （应该是用不到了）
    private Long targetTotalSpace;
    private Long targetUsableSpace;
    private String targetTotalSpaceStr; // 总空间
    private String targetUsableSpaceStr; // 剩余空间

    public GroupMapVo(){}

    public GroupMapVo(GroupMap gm) {
        BeanUtil.copyProperties(gm, this);
    }

    public ClientNode getSourceClientNode() {
        return sourceClientNode;
    }

    public void setSourceClientNode(ClientNode sourceClientNode) {
        this.sourceClientNode = sourceClientNode;
    }

    public Long getSourceTotalSpace() {
        return sourceTotalSpace;
    }

    public void setSourceTotalSpace(Long sourceTotalSpace) {
        this.sourceTotalSpace = sourceTotalSpace;
    }

    public Long getSourceUsableSpace() {
        return sourceUsableSpace;
    }

    public void setSourceUsableSpace(Long sourceUsableSpace) {
        this.sourceUsableSpace = sourceUsableSpace;
    }

    public String getSourceTotalSpaceStr() {
        return sourceTotalSpaceStr;
    }

    public void setSourceTotalSpaceStr(String sourceTotalSpaceStr) {
        this.sourceTotalSpaceStr = sourceTotalSpaceStr;
    }

    public String getSourceUsableSpaceStr() {
        return sourceUsableSpaceStr;
    }

    public void setSourceUsableSpaceStr(String sourceUsableSpaceStr) {
        this.sourceUsableSpaceStr = sourceUsableSpaceStr;
    }

    public ClientNode getTargetClientNode() {
        return targetClientNode;
    }

    public void setTargetClientNode(ClientNode targetClientNode) {
        this.targetClientNode = targetClientNode;
    }

    public Long getTargetTotalSpace() {
        return targetTotalSpace;
    }

    public void setTargetTotalSpace(Long targetTotalSpace) {
        this.targetTotalSpace = targetTotalSpace;
    }

    public Long getTargetUsableSpace() {
        return targetUsableSpace;
    }

    public void setTargetUsableSpace(Long targetUsableSpace) {
        this.targetUsableSpace = targetUsableSpace;
    }

    public String getTargetTotalSpaceStr() {
        return targetTotalSpaceStr;
    }

    public void setTargetTotalSpaceStr(String targetTotalSpaceStr) {
        this.targetTotalSpaceStr = targetTotalSpaceStr;
    }

    public String getTargetUsableSpaceStr() {
        return targetUsableSpaceStr;
    }

    public void setTargetUsableSpaceStr(String targetUsableSpaceStr) {
        this.targetUsableSpaceStr = targetUsableSpaceStr;
    }
}
